import request from '@/utils/request';
import type { OrderPageListResponse, OrderStatusList } from './types';

const api_name = '/admin/order/orderInfo';

export const reqGetPageList = (page: number, limit: number, searchObj: any) => {
  return request.get<any, OrderPageListResponse>(
    `${api_name}/${page}/${limit}`,
    { params: searchObj }
  );
};

export const reqGetStatusList = () => request.get<any, OrderStatusList>(`${api_name}/getStatusList`);


export const reqGetById = (id: number) => request.get<any, any>(`${api_name}/show/${id}`);
